Keyboard does not work in DOS due to BIOS error.
Cause:
The BIOS misread the information that a keyboard was connected to the computer when the computer was first turned on.
Solution:
Restart the computer.